Size-Operating profitability portfolios are formed based on the NYSE, NASDAQ and AMEX.

Further improvement: + Change the risk-free rate data to the ones compatible with different frequency requirements.

Data cleaning and Preparation

Information about initial coding setup:

  1. freq sets the data frequency for the following analysis, 12 for monthly data, 4 for quarterly data and 1 for annual data.
  2. start.ym gives the earliest reasonable starting point of the series, which is January 1966, based on the available number of firms in the data set.
  3. After the preliminary data cleaning, port_market is the market portfolio data (including NYSE, NASDAQ and AMEX), ports_all contains different deciles. All the data are stored in the file named as market.names and data.names. I’ve finished creating the measures based on characteristic deciles, so I’ll have a close look at your results shortly. The decile data is attached. As mentioned, these are based on a single characteristic sort, which will hopefully provide new insight into characteristic based predictability. The characteristics are as follows:
  1. RF denotes the risk-free rate, which is the average of the bid and ask.

Notes: Seems that the big-value and small-growth portfolios include less firms comparing the other four characteristic portfolios, around half of them.

Figure 1 - Log Cumulative Index

Log cumulative realised portfolio return components for seven portfolios - the market portfolio and six size and book-to-market equity ratio sorted portfolios. All following figures demonstrate the monthly realised price-earnings ratio growth (gm), earnings growth (ge), dividend-price (dp) and the portfolio return index (r) with the values in January 1966 as zero for all portfolios.

.

Table 1 - Summary statistics of returns components

The correlations between gm and ge might be a bit too high comparing to Ferreira and Santa-Clara (2011). Need to check the code again.

Need to go back to the construction process of Prof Robert Shiller’s CAPE.

‘kable’ for Table Creation

## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead

## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead
Table 1 - Summary statistics of returns components
monthly data starts from Jan 1967 and ends in Dec 2019.
Panel A: univariate statistics Panel B: Correlations
Mean Median SD Min Max Skew Kurt AR(1) gm ge dp r
Market
gm 0.02 -0.03 3.12 -15.26 13.28 -0.19 4.42 0.92 1.00 -0.51 -0.03 0.07
ge 0.76 1.11 5.34 -22.01 19.34 -0.50 2.44 0.33 -0.51 1.00 -0.03 0.81
dp 0.28 0.27 0.09 0.09 0.50 0.14 -0.70 0.98 -0.03 -0.03 1.00 -0.03
r 0.94 1.25 4.43 -22.48 16.58 -0.51 1.85 0.05 0.07 0.81 -0.03 1.00
B_Q1
gm 0.03 -0.24 6.47 -26.75 31.15 -0.25 2.69 0.60 1.00 -0.68 -0.09 0.13
ge 0.54 0.80 8.22 -28.00 28.21 -0.18 0.61 0.33 -0.68 1.00 0.02 0.63
dp 0.28 0.24 0.16 0.05 1.22 1.93 6.03 0.94 -0.09 0.02 1.00 -0.06
r 0.89 0.94 5.93 -25.03 21.36 -0.33 1.83 0.13 0.13 0.63 -0.06 1.00
B_Q2
gm 0.02 -0.12 3.49 -12.70 15.37 0.24 1.73 0.84 1.00 -0.54 -0.03 0.09
ge 0.58 0.89 5.61 -29.85 17.66 -0.58 2.43 0.33 -0.54 1.00 -0.04 0.78
dp 0.30 0.28 0.12 0.12 0.79 0.83 0.13 0.94 -0.03 -0.04 1.00 -0.05
r 0.92 1.16 4.66 -22.16 17.74 -0.49 2.49 0.07 0.09 0.78 -0.05 1.00
B_Q3
gm -0.03 0.18 2.39 -8.16 12.69 -0.08 1.93 0.73 1.00 -0.39 0.00 0.12
ge 0.69 0.73 4.67 -18.53 20.13 -0.19 1.62 0.20 -0.39 1.00 -0.06 0.86
dp 0.29 0.28 0.11 0.11 0.60 0.49 -0.55 0.97 0.00 -0.06 1.00 -0.05
r 0.94 1.32 4.25 -18.23 16.95 -0.40 1.55 0.05 0.12 0.86 -0.05 1.00
B_Q4
gm 0.04 0.28 2.40 -8.93 8.62 -0.07 0.96 0.80 1.00 -0.39 -0.15 0.12
ge 0.73 0.87 4.64 -21.93 24.72 -0.23 2.37 0.17 -0.39 1.00 0.04 0.86
dp 0.25 0.23 0.10 0.11 0.56 0.63 -0.39 0.97 -0.15 0.04 1.00 -0.01
r 0.98 1.05 4.28 -20.95 21.21 -0.33 2.08 0.01 0.12 0.86 -0.01 1.00
B_Q5
gm 0.05 0.56 3.25 -13.38 12.73 -0.38 1.77 0.77 1.00 -0.39 -0.01 0.17
ge 0.87 1.09 5.76 -25.05 24.67 -0.28 1.54 0.16 -0.39 1.00 -0.01 0.83
dp 0.21 0.17 0.12 0.03 0.72 1.46 1.93 0.94 -0.01 -0.01 1.00 0.01
r 1.04 1.40 5.33 -23.29 21.47 -0.34 1.74 0.03 0.17 0.83 0.01 1.00
S_Q1
gm -0.42 -0.51 8.08 -70.16 39.96 -1.25 12.27 0.70 1.00 -0.67 -0.18 0.12
ge 1.01 1.04 10.53 -53.04 68.75 0.06 4.92 0.41 -0.67 1.00 0.11 0.61
dp 0.89 0.34 1.56 0.06 9.66 3.52 12.75 0.96 -0.18 0.11 1.00 -0.04
r 0.98 1.16 7.25 -30.86 37.56 0.01 2.40 0.16 0.12 0.61 -0.04 1.00
S_Q2
gm 0.00 0.02 13.94 -96.79 115.43 0.25 22.86 0.47 1.00 -0.92 -0.10 0.08
ge 0.99 1.28 14.61 -111.12 94.53 -0.43 17.46 0.41 -0.92 1.00 0.07 0.31
dp 0.46 0.32 0.74 0.10 6.09 6.29 40.75 0.91 -0.10 0.07 1.00 -0.06
r 1.13 1.45 5.58 -27.26 29.83 -0.39 3.21 0.15 0.08 0.31 -0.06 1.00
S_Q3
gm 0.10 0.09 4.83 -43.95 30.26 -1.44 18.80 0.79 1.00 -0.63 0.04 0.11
ge 1.08 1.34 6.69 -32.77 46.60 0.02 5.52 0.38 -0.63 1.00 -0.03 0.69
dp 0.62 0.30 1.28 0.11 7.52 4.10 15.64 0.93 0.04 -0.03 1.00 -0.01
r 1.27 1.60 5.12 -25.81 23.34 -0.54 2.44 0.11 0.11 0.69 -0.01 1.00
S_Q4
gm 0.07 0.25 3.47 -11.76 19.62 0.06 2.42 0.79 1.00 -0.45 -0.07 0.14
ge 1.22 1.16 5.90 -26.19 22.26 -0.21 1.58 0.22 -0.45 1.00 -0.03 0.81
dp 0.29 0.27 0.11 0.10 0.72 1.03 1.32 0.93 -0.07 -0.03 1.00 -0.05
r 1.26 1.71 5.26 -27.62 25.23 -0.43 2.62 0.10 0.14 0.81 -0.05 1.00
S_Q5
gm 0.25 0.69 8.17 -96.81 74.36 -2.49 52.16 0.50 1.00 -0.77 -0.01 -0.01
ge 1.29 1.86 10.54 -85.51 101.61 0.79 25.22 0.35 -0.77 1.00 -0.04 0.63
dp 0.25 0.21 0.20 0.05 1.86 4.74 29.48 0.92 -0.01 -0.04 1.00 -0.05
r 1.19 1.54 6.48 -33.05 27.26 -0.44 2.05 0.11 -0.01 0.63 -0.05 1.00
Note: Panel A in this table presents mean, median, standard deviation (SD), minimum, maximum, skewness (Skew), kurtosis (kurt) and first-order autocorrelation coefficient of the realised components of stock market returns and six size and book-to-market equity ratio sorted portfolios. These univariate statistics for each portfolios are presented separately. gm is the continuously compounded growth rate in the price-earnings ratio. ge is the continuously compounded growth rate in earnings. dp is the log of one plus the dividend-price ratio. *r* is the portfolio returns. Panel B in this table reports correlation matrices for all seven portfolios. The sample period starts from Feburary 1966 and ends in December 2019.

Figure 3 - Cumulative OOS R-sqaure Difference and Cumulative SSE Difference

The cumulative OOS R-square figures show the out-of-sample cumulative R-square up to each month from predictive regressions with listed predictors and from the sum-of-the-parts (SOP) method for each portfolio. The cumulative SSE difference plots indicates the out-of-sample performance of each model. These are evaluated by the cumulative squared prediction errors of the NULL minus the cumulative squared predictirion error of the ALTERNATIVE. The NULL model is the historical mean model, while the ALTERNATIVE model is either the predictive regression model or the SOP model. An incresae in the line suggests better performance of the ALTERNATIVE model and a decrease suggests that the NULL model is better.

Several points to note in the coding:

  1. The dividend-price ratio (‘DP’ hereafter) is calculated as the log of 1 plus the frequency-adjusted dividend to price ratio, rather than using the annual dividend. As by this return decomposition, the expected amount of dividend payout in each period should be adjusted by the frequency of the data in the analysis. \[ dp_t = \log (1 + \frac{\tilde{D}_t}{P_t}) = \log (1 + \frac{D_t / n}{P_t}) \text{,} \] where \(D_t\) is the annual dividend payment and \(n\) is the data frequency (e.g. \(n = 1\) for annual data and \(n = 12\) for monthly data) and \(\tilde{D}_t\) is the freqency-adjusted dividend payment for period \(t\).

  2. The SOP method by Ferreira and Santa-Clara (2011) decomposes the portfolio return into three components, namely the earnings growth, the prie multiple expansion and the next period dividend-price ratio. Here to generate the SOP prediction, we use the rolling mean of past earnings growth as the expected growth of the next period (denoted as ge1). However, there are other choices, such as recursive means in ge2 and ge3.

  3. critica.value = TRUE is the option whether to use boostrap method to calculate the MSE-F critical values. This is used in function Boot_MSE.F.

  4. The authors should evaluate the significance of the MSE−F statistic by using the theoret- ical distribution derived in McCracken (2007). The bootstrap-based inference (presented in Pages 9-10) can represent a robustness check and moved to an appendix. Further- more, the authors can also include in the main results the related out-of-sample statistic proposed by Clark and West (2007), which follows a standard Normal distribution. Therefore, readjust the Boot_MSE.F function.

  5. Column McCracken in Table 2 (line 604) gives the significance of the out-of-sample \(MSE–F\) statistic of McCracken (2007). \(***\), \(**\), and \(*\) denote significance at the 1%, 5%, and 10% level, respectively. Please refer to the Table 4 on P749 in McCracken (2007) with \(k_2 = 1\) and \(\pi = P/R = \frac{\text{Number of out-of-sample forecasts}}{\text{Number of observations used to form the first forecast}} = 1.6\).

## [1] "market_Allfirms.csv"
## [1] "Market"
## ##------ Mon Aug  8 10:43:24 2022 ------##
## Note: Using an external vector in selections is ambiguous.
## ℹ Use `all_of(actual)` instead of `actual` to silence this message.
## ℹ See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
## This message is displayed once per session.
## Note: Using an external vector in selections is ambiguous.
## ℹ Use `all_of(cond)` instead of `cond` to silence this message.
## ℹ See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
## This message is displayed once per session.
## Note: Using an external vector in selections is ambiguous.
## ℹ Use `all_of(uncond)` instead of `uncond` to silence this message.
## ℹ See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
## This message is displayed once per session.
## Note: Using an external vector in selections is ambiguous.
## ℹ Use `all_of(x)` instead of `x` to silence this message.
## ℹ See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
## This message is displayed once per session.
## [1] "OOS R Squared: 0.0047"
## [1] "MSE-F: 1.8524"
## Note: Using an external vector in selections is ambiguous.
## ℹ Use `all_of(predictor)` instead of `predictor` to silence this message.
## ℹ See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
## This message is displayed once per session.

## [1] "IS R Squared: 0.0106"
## [1] "OOS R Squared: -0.0104"
## [1] "MSE-F: -4.054"
## [1] "IS R Squared: 0.0045"
## [1] "OOS R Squared: -0.0023"
## [1] "MSE-F: -0.9222"
## [1] "IS R Squared: 0.0051"
## [1] "OOS R Squared: -0.0017"
## [1] "MSE-F: -0.658"
## [1] "IS R Squared: 0.012"
## [1] "OOS R Squared: -0.0086"
## [1] "MSE-F: -3.3515"
## [1] "IS R Squared: 1e-04"
## [1] "OOS R Squared: -0.0079"
## [1] "MSE-F: -3.1035"

## [1] "port_B_Q1.csv"
## [1] "B_Q1"
## ##------ Mon Aug  8 10:43:30 2022 ------##
## [1] "OOS R Squared: -0.0011"
## [1] "MSE-F: -0.4366"

## [1] "IS R Squared: 0.0048"
## [1] "OOS R Squared: -0.0062"
## [1] "MSE-F: -2.4223"
## [1] "IS R Squared: 0"
## [1] "OOS R Squared: -0.0052"
## [1] "MSE-F: -2.0379"
## [1] "IS R Squared: 1e-04"
## [1] "OOS R Squared: -0.0052"
## [1] "MSE-F: -2.0307"
## [1] "IS R Squared: 0.0069"
## [1] "OOS R Squared: -0.0036"
## [1] "MSE-F: -1.4079"
## [1] "IS R Squared: 0.005"
## [1] "OOS R Squared: -0.0034"
## [1] "MSE-F: -1.3539"

## [1] "port_B_Q2.csv"
## [1] "B_Q2"
## ##------ Mon Aug  8 10:43:36 2022 ------##
## [1] "OOS R Squared: 0.0038"
## [1] "MSE-F: 1.5075"

## [1] "IS R Squared: 0.0047"
## [1] "OOS R Squared: 7e-04"
## [1] "MSE-F: 0.2814"
## [1] "IS R Squared: 3e-04"
## [1] "OOS R Squared: -0.0024"
## [1] "MSE-F: -0.9373"
## [1] "IS R Squared: 6e-04"
## [1] "OOS R Squared: -0.0022"
## [1] "MSE-F: -0.855"
## [1] "IS R Squared: 0.006"
## [1] "OOS R Squared: 0.0029"
## [1] "MSE-F: 1.1461"
## [1] "IS R Squared: 0.0037"
## [1] "OOS R Squared: -0.0047"
## [1] "MSE-F: -1.8419"

## [1] "port_B_Q3.csv"
## [1] "B_Q3"
## ##------ Mon Aug  8 10:43:41 2022 ------##
## [1] "OOS R Squared: 0.0021"
## [1] "MSE-F: 0.8311"

## [1] "IS R Squared: 0.0046"
## [1] "OOS R Squared: -0.0198"
## [1] "MSE-F: -7.688"
## [1] "IS R Squared: 0.0032"
## [1] "OOS R Squared: -0.0011"
## [1] "MSE-F: -0.4226"
## [1] "IS R Squared: 0.0037"
## [1] "OOS R Squared: -4e-04"
## [1] "MSE-F: -0.1448"
## [1] "IS R Squared: 0.0052"
## [1] "OOS R Squared: -0.0189"
## [1] "MSE-F: -7.3216"
## [1] "IS R Squared: 8e-04"
## [1] "OOS R Squared: -0.0094"
## [1] "MSE-F: -3.6905"

## [1] "port_B_Q4.csv"
## [1] "B_Q4"
## ##------ Mon Aug  8 10:43:46 2022 ------##
## [1] "OOS R Squared: 0.0038"
## [1] "MSE-F: 1.5286"

## [1] "IS R Squared: 0.0082"
## [1] "OOS R Squared: -0.0183"
## [1] "MSE-F: -7.0889"
## [1] "IS R Squared: 0.0099"
## [1] "OOS R Squared: -0.0091"
## [1] "MSE-F: -3.5638"
## [1] "IS R Squared: 0.0097"
## [1] "OOS R Squared: -0.007"
## [1] "MSE-F: -2.7574"
## [1] "IS R Squared: 0.0083"
## [1] "OOS R Squared: -0.0165"
## [1] "MSE-F: -6.4237"
## [1] "IS R Squared: 2e-04"
## [1] "OOS R Squared: -0.0043"
## [1] "MSE-F: -1.687"

## [1] "port_B_Q5.csv"
## [1] "B_Q5"
## ##------ Mon Aug  8 10:43:51 2022 ------##
## [1] "OOS R Squared: 0.0036"
## [1] "MSE-F: 1.4316"

## [1] "IS R Squared: 0.0157"
## [1] "OOS R Squared: 0.0025"
## [1] "MSE-F: 0.9806"
## [1] "IS R Squared: 0.008"
## [1] "OOS R Squared: 0.001"
## [1] "MSE-F: 0.3779"
## [1] "IS R Squared: 0.0082"
## [1] "OOS R Squared: 0.0019"
## [1] "MSE-F: 0.7478"
## [1] "IS R Squared: 0.016"
## [1] "OOS R Squared: 0.0041"
## [1] "MSE-F: 1.6134"
## [1] "IS R Squared: 0.0057"
## [1] "OOS R Squared: 0.0033"
## [1] "MSE-F: 1.2949"

## [1] "port_S_Q1.csv"
## [1] "S_Q1"
## ##------ Mon Aug  8 10:43:58 2022 ------##
## [1] "OOS R Squared: -0.0831"
## [1] "MSE-F: -30.3795"

## [1] "IS R Squared: 0.0014"
## [1] "OOS R Squared: -0.0127"
## [1] "MSE-F: -4.9478"
## [1] "IS R Squared: 9e-04"
## [1] "OOS R Squared: -0.0022"
## [1] "MSE-F: -0.8672"
## [1] "IS R Squared: 0.0018"
## [1] "OOS R Squared: -9e-04"
## [1] "MSE-F: -0.3612"
## [1] "IS R Squared: 0.0025"
## [1] "OOS R Squared: -0.0162"
## [1] "MSE-F: -6.3023"
## [1] "IS R Squared: 1e-04"
## [1] "OOS R Squared: -0.0048"
## [1] "MSE-F: -1.8903"

## [1] "port_S_Q2.csv"
## [1] "S_Q2"
## ##------ Mon Aug  8 10:44:03 2022 ------##
## [1] "OOS R Squared: -0.0422"
## [1] "MSE-F: -16.0318"

## [1] "IS R Squared: 0"
## [1] "OOS R Squared: -0.0078"
## [1] "MSE-F: -3.072"
## [1] "IS R Squared: 0.0052"
## [1] "OOS R Squared: 5e-04"
## [1] "MSE-F: 0.2086"
## [1] "IS R Squared: 0.007"
## [1] "OOS R Squared: 0.0011"
## [1] "MSE-F: 0.4517"
## [1] "IS R Squared: 3e-04"
## [1] "OOS R Squared: -0.0099"
## [1] "MSE-F: -3.8826"
## [1] "IS R Squared: 0.0027"
## [1] "OOS R Squared: -0.0045"
## [1] "MSE-F: -1.7567"

## [1] "port_S_Q3.csv"
## [1] "S_Q3"
## ##------ Mon Aug  8 10:44:07 2022 ------##
## [1] "OOS R Squared: -0.1206"
## [1] "MSE-F: -42.6164"

## [1] "IS R Squared: 8e-04"
## [1] "OOS R Squared: -0.0156"
## [1] "MSE-F: -6.0851"
## [1] "IS R Squared: 0.0041"
## [1] "OOS R Squared: -9e-04"
## [1] "MSE-F: -0.3603"
## [1] "IS R Squared: 0.0057"
## [1] "OOS R Squared: -0.002"
## [1] "MSE-F: -0.7868"
## [1] "IS R Squared: 0.0013"
## [1] "OOS R Squared: -0.0223"
## [1] "MSE-F: -8.6207"
## [1] "IS R Squared: 1e-04"
## [1] "OOS R Squared: -0.01"
## [1] "MSE-F: -3.9114"

## [1] "port_S_Q4.csv"
## [1] "S_Q4"
## ##------ Mon Aug  8 10:44:12 2022 ------##
## [1] "OOS R Squared: -0.0059"
## [1] "MSE-F: -2.3399"

## [1] "IS R Squared: 0.0037"
## [1] "OOS R Squared: -0.0114"
## [1] "MSE-F: -4.4706"
## [1] "IS R Squared: 0.0024"
## [1] "OOS R Squared: -0.0024"
## [1] "MSE-F: -0.9579"
## [1] "IS R Squared: 0.0035"
## [1] "OOS R Squared: -0.0036"
## [1] "MSE-F: -1.4043"
## [1] "IS R Squared: 0.0054"
## [1] "OOS R Squared: -0.0158"
## [1] "MSE-F: -6.1338"
## [1] "IS R Squared: 0"
## [1] "OOS R Squared: -0.0115"
## [1] "MSE-F: -4.4738"

## [1] "port_S_Q5.csv"
## [1] "S_Q5"
## ##------ Mon Aug  8 10:44:16 2022 ------##
## [1] "OOS R Squared: -0.0081"
## [1] "MSE-F: -3.1711"

## [1] "IS R Squared: 0.0046"
## [1] "OOS R Squared: -0.0253"
## [1] "MSE-F: -9.762"
## [1] "IS R Squared: 0.0055"
## [1] "OOS R Squared: -0.0034"
## [1] "MSE-F: -1.3453"
## [1] "IS R Squared: 0.007"
## [1] "OOS R Squared: -0.0042"
## [1] "MSE-F: -1.6518"
## [1] "IS R Squared: 0.0064"
## [1] "OOS R Squared: -0.0289"
## [1] "MSE-F: -11.1004"
## [1] "IS R Squared: 2e-04"
## [1] "OOS R Squared: -0.0287"
## [1] "MSE-F: -11.0243"

Table 2 - Forecasts of portfolio returns

This table demonstrates the in-sample and out-of-sample R-squares for the market and six size and book-to-market equity ratio sorted portfolios from predictive regressions and the Sum-of-the-Parts method. IS R-squares are estimated using the whole sample period and the OOS R-squares are calculated compare the forecast error of the model against the historical mean model. The full sample period starts from Feb 1966 to December 2019 and the IS period is set to be 20 years with forecsats beginning in Feb 1986. The MSE-F statistics are calculated to test the hypothesis \(H_0: \text{out-of-sample R-squares} = 0\) vs \(H_1: \text{out-of-sample R-squares} \neq 0\).

Predictors here are all in log terms.

gt(table2.df, rowname_col = "rowname", groupname_col = "portname") %>%
  tab_header(title = "Table 2 - Forecasts of portfolio returns",
             subtitle = paste(freq_name(freq = freq), " data starts from ", first(data_decompose$month), " and ends in ", last(data_decompose$month), ".", sep = "")) %>%
  fmt_number(columns = 1:4, decimals = 6, suffixing = TRUE)
Table 2 - Forecasts of portfolio returns
monthly data starts from Jan 1967 and ends in Dec 2019.
IS_r.squared OOS_r.squared MAE_A MSE_F McCracken
Market
DP 0.010630 −0.010370 0.032611 −4.054026
PE 0.004546 −0.002340 0.032475 −0.922206
EY 0.005117 −0.001669 0.032494 −0.657989
DY 0.011952 −0.008557 0.032621 −3.351461
Payout 0.000117 −0.007919 0.032081 −3.103538
SOP NA 0.004656 0.032173 1.852440 **
B_Q1
DP 0.004797 −0.006170 0.043825 −2.422290
PE 0.000007 −0.005186 0.043873 −2.037933
EY 0.000130 −0.005167 0.043932 −2.030652
DY 0.006935 −0.003577 0.043808 −1.407936
Payout 0.005049 −0.003439 0.043552 −1.353900
SOP NA −0.001104 0.043960 −0.436579
B_Q2
DP 0.004687 0.000712 0.033655 0.281406
PE 0.000264 −0.002378 0.033391 −0.937254
EY 0.000594 −0.002169 0.033430 −0.855027
DY 0.005963 0.002893 0.033686 1.146078 *
Payout 0.003749 −0.004685 0.033221 −1.841918
SOP NA 0.003792 0.033720 1.507541 *
B_Q3
DP 0.004574 −0.019850 0.031245 −7.688049
PE 0.003202 −0.001071 0.030954 −0.422625
EY 0.003747 −0.000367 0.030963 −0.144783
DY 0.005226 −0.018886 0.031269 −7.321602
Payout 0.000800 −0.009431 0.030825 −3.690515
SOP NA 0.002094 0.030949 0.831130 *
B_Q4
DP 0.008177 −0.018274 0.030870 −7.088857
PE 0.009874 −0.009104 0.030816 −3.563822
EY 0.009720 −0.007030 0.030771 −2.757376
DY 0.008304 −0.016531 0.030868 −6.423661
Payout 0.000214 −0.004289 0.030324 −1.687034
SOP NA 0.003845 0.030385 1.528554 *
B_Q5
DP 0.015660 0.002476 0.037957 0.980554 *
PE 0.008028 0.000956 0.038138 0.377851
EY 0.008193 0.001890 0.038106 0.747838 *
DY 0.015958 0.004068 0.037921 1.613447 **
Payout 0.005698 0.003267 0.037850 1.294875 *
SOP NA 0.003602 0.038097 1.431602 *
S_Q1
DP 0.001404 −0.012685 0.053188 −4.947779
PE 0.000922 −0.002200 0.052908 −0.867177
EY 0.001850 −0.000915 0.052796 −0.361185
DY 0.002478 −0.016214 0.053231 −6.302263
Payout 0.000061 −0.004809 0.053033 −1.890278
SOP NA −0.083090 0.054728 −30.379533
S_Q2
DP 0.000017 −0.007838 0.038735 −3.071994
PE 0.005211 0.000528 0.038991 0.208614
EY 0.006976 0.001142 0.039049 0.451732
DY 0.000334 −0.009927 0.038640 −3.882609
Payout 0.002679 −0.004467 0.039044 −1.756681
SOP NA −0.042192 0.039370 −16.031785
S_Q3
DP 0.000847 −0.015646 0.035962 −6.085123
PE 0.004120 −0.000913 0.036118 −0.360346
EY 0.005678 −0.001996 0.036213 −0.786792
DY 0.001300 −0.022311 0.036003 −8.620667
Payout 0.000065 −0.010001 0.036060 −3.911384
SOP NA −0.120595 0.038297 −42.616355
S_Q4
DP 0.003723 −0.011447 0.036875 −4.470552
PE 0.002433 −0.002431 0.036887 −0.957852
EY 0.003536 −0.003568 0.036999 −1.404297
DY 0.005398 −0.015774 0.036992 −6.133832
Payout 0.000008 −0.011456 0.036646 −4.473844
SOP NA −0.005944 0.036619 −2.339945
S_Q5
DP 0.004605 −0.025340 0.047063 −9.761989
PE 0.005534 −0.003418 0.047444 −1.345322
EY 0.006986 −0.004199 0.047555 −1.651753
DY 0.006376 −0.028915 0.047134 −11.100440
Payout 0.000235 −0.028711 0.047244 −11.024282
SOP NA −0.008073 0.046804 −3.171120

Figure 4 - Monthly return predictions

Here I only present the monthly predictions of the historical mean model, the SOP method and the predictive regressions based on the dividend-price ratio and the earnings-price ratio.

## [1] "market_Allfirms.csv"
## [1] "Market"
## ##------ Mon Aug  8 10:44:26 2022 ------##

## [1] "port_B_Q1.csv"
## [1] "B_Q1"
## ##------ Mon Aug  8 10:44:30 2022 ------##

## [1] "port_B_Q2.csv"
## [1] "B_Q2"
## ##------ Mon Aug  8 10:44:35 2022 ------##

## [1] "port_B_Q3.csv"
## [1] "B_Q3"
## ##------ Mon Aug  8 10:44:39 2022 ------##

## [1] "port_B_Q4.csv"
## [1] "B_Q4"
## ##------ Mon Aug  8 10:44:43 2022 ------##

## [1] "port_B_Q5.csv"
## [1] "B_Q5"
## ##------ Mon Aug  8 10:44:48 2022 ------##

## [1] "port_S_Q1.csv"
## [1] "S_Q1"
## ##------ Mon Aug  8 10:44:51 2022 ------##

## [1] "port_S_Q2.csv"
## [1] "S_Q2"
## ##------ Mon Aug  8 10:44:56 2022 ------##

## [1] "port_S_Q3.csv"
## [1] "S_Q3"
## ##------ Mon Aug  8 10:44:59 2022 ------##

## [1] "port_S_Q4.csv"
## [1] "S_Q4"
## ##------ Mon Aug  8 10:45:03 2022 ------##

## [1] "port_S_Q5.csv"
## [1] "S_Q5"
## ##------ Mon Aug  8 10:45:07 2022 ------##

Figure 5 - Trading Performance (with no trading restrictions)

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in xy.coords(x = matrix(rep.int(tx, k), ncol = k), y = x, log = log, :
## 387 y values <= 0 omitted from logarithmic plot

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in xy.coords(x = matrix(rep.int(tx, k), ncol = k), y = x, log = log, :
## 387 y values <= 0 omitted from logarithmic plot

Table 3 - Certaint equivalent gains

Trading Strategies: certaint equivalent gains

This table shows the out-of-sample portfolio choice results at monthly frequencies from predictive regressions and the SOP method. The trading strategy for each portfolio is designed by optimally allocating funds between the risk-free asset and the corresponding risky portfolio. The certainty equivalent return is \(\overline{rp} - \frac{1}{2} \gamma \hat{\sigma}_{rp}^{2}\) with a risk-aversion coefficient \(\gamma = 3\). The annualised certainty equivalent gain (in percentage) is the monthly certainty equivalent gain multiplied by the corresponding frequency (e.g. 12 for monthly data).

dt <- table3.df %>%
  filter(rowname %in% c(ratio_names, "sop_simple")) %>%
  select(CEGs_annualised, rowname, portname)

as.data.frame(matrix(dt$CEGs_annualised, byrow = F, nrow = length(ratio_names) + 1, ncol = length(id.names))) %>%
  `colnames<-`(unique(dt$portname)) %>%
  mutate(Variable = unique(dt$rowname)) %>%
  # round(digits = 4) %>%
  as.tbl() %>%
  select(Variable, unique(dt$portname)) %>%
  gt(rowname_col = "Variable") %>%
  tab_header(title = "Table 3 - Trading Strategies: certainty equivalent gains",
             subtitle = paste(str_to_title(freq_name(freq = freq)), " data starts from ", first(data_decompose$month) + 20, " and ends in ", last(data_decompose$month), ".", sep = "")) %>%
  fmt_percent(columns = 2:(length(id.names)+1), decimals = 2)
Table 3 - Trading Strategies: certainty equivalent gains
Monthly data starts from Jan 1987 and ends in Dec 2019.
Market B_Q1 B_Q2 B_Q3 B_Q4 B_Q5 S_Q1 S_Q2 S_Q3 S_Q4 S_Q5
sop_simple 1.10% 0.44% 2.73% 0.09% 0.75% 0.41% −19.10% −27.22% −9.64% 1.27% −7.97%
DP −2.85% −1.71% 0.58% −6.64% −5.07% −2.64% 0.42% −0.01% 0.75% 2.42% −72.81%
PE 0.84% −2.75% −1.92% 0.92% −2.28% 0.20% −1.28% −10.79% 1.68% 2.22% 1.54%
EY 0.98% −2.58% −1.87% 1.19% −1.81% 0.37% −2.00% −16.78% 1.76% 2.70% 1.23%
DY −2.36% −1.37% 0.89% −6.35% −4.69% −2.17% −0.62% 1.01% −0.21% 1.05% −89.49%
Payout −4.13% −3.64% −9.83% −3.72% −1.27% −1.25% −0.13% −9.58% −4.45% −3.38% −54.67%

Table 4 - Sharpe ratio Gains

Trading Strategies: Sharpe ratio Gains

This table presents the Sharpe ratio of the out-of-sample performance of trading strategies, allocating funds between risk-free and risky assets for each portfolio. The annualised Sharpe ratio is generated by multipling the monthly Sharpe ratio by square root of the corresponding frequency (e.g. \(\sqrt{12}\) for monthly data).

dt <- table4.df %>%
  filter(rowname %in% c(ratio_names, "sop_simple")) %>%
  select(SRG_annualised, rowname, portname)

as.data.frame(matrix(dt$SRG_annualised, byrow = F, nrow = length(ratio_names) + 1, ncol = length(id.names))) %>%
  `colnames<-`(unique(dt$portname)) %>%
  mutate(Variable = unique(dt$rowname)) %>%
  # round(digits = 4) %>%
  as.tbl() %>%
  select(Variable, unique(dt$portname)) %>%
  gt(rowname_col = "Variable") %>%
  tab_header(title = "Table 4 - Trading Strategies: Sharpe ratio gains", 
             subtitle = paste(str_to_title(freq_name(freq = freq)), " data starts from ", first(data_decompose$month) + 20, " and ends in ", last(data_decompose$month), ".", sep = "")) %>%
  fmt_number(columns = 2:(length(id.names)+1), decimals = 4) 
Table 4 - Trading Strategies: Sharpe ratio gains
Monthly data starts from Jan 1987 and ends in Dec 2019.
Market B_Q1 B_Q2 B_Q3 B_Q4 B_Q5 S_Q1 S_Q2 S_Q3 S_Q4 S_Q5
sop_simple 0.0524 0.0345 0.1135 −0.0042 0.0441 0.0231 0.0697 −0.0689 0.0819 0.0710 −0.0877
DP −0.1667 −0.1337 0.0026 −0.3334 −0.2925 −0.1385 0.0397 −0.0397 0.0049 0.0694 −0.4237
PE 0.0674 −0.1442 −0.0774 0.0825 −0.0982 0.0935 −0.0602 −0.1130 0.0173 0.0558 0.0704
EY 0.0827 −0.1490 −0.0831 0.1172 −0.0584 0.1140 −0.0545 −0.1315 0.0204 0.0970 0.0411
DY −0.1441 −0.1013 0.0179 −0.3270 −0.2693 −0.1168 0.0571 0.0189 −0.0075 0.0282 −0.4344
Payout −0.1547 −0.1521 −0.1017 −0.1374 −0.0596 −0.0517 −0.0499 −0.1447 −0.1285 −0.1077 −0.4171

Figure 6 - Sensitivity of Certainty Equivalent Gains relative to Risk-Aversion level

This figure presents the out-of-sample portfolio choice results at monthly frequency from bivariate predictive regressions and the SOP method with different levels of risk-aversion. To show that our previous results hold with respect to investors with different levels of risk aversion, we evaluate the changes in certainty equivalent gains with respect to the changes in the level of risk-aversion. The results of the trading strategy reported here are without trading restrictions (as in Table 5), allocating funds between the risk-free asset and the risky equity portfolio. The portfolio choice results are evaluated in the certainty equivalent return with relative risk-aversion coefficient \(\gamma\), with ${\(0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5\)}$. Risky equity portfolios include the market portfolio and six size and book-to-market equity sorted portfolios, BH, BM, BL, SH, SM and SL. The annualised certainty equivalent gain is the monthly certainty equivalent gain multiplied by twelve. The sample period is from February 1966 to December 2019 and the out-of-sample period starts in March 1986.

## [1] "Market"
## ##------ Mon Aug  8 10:45:22 2022 ------##
## [1] "B_Q1"
## ##------ Mon Aug  8 10:45:22 2022 ------##
## [1] "B_Q2"
## ##------ Mon Aug  8 10:45:22 2022 ------##
## [1] "B_Q3"
## ##------ Mon Aug  8 10:45:22 2022 ------##
## [1] "B_Q4"
## ##------ Mon Aug  8 10:45:22 2022 ------##
## [1] "B_Q5"
## ##------ Mon Aug  8 10:45:23 2022 ------##
## [1] "S_Q1"
## ##------ Mon Aug  8 10:45:23 2022 ------##
## [1] "S_Q2"
## ##------ Mon Aug  8 10:45:23 2022 ------##
## [1] "S_Q3"
## ##------ Mon Aug  8 10:45:23 2022 ------##
## [1] "S_Q4"
## ##------ Mon Aug  8 10:45:23 2022 ------##
## [1] "S_Q5"
## ##------ Mon Aug  8 10:45:23 2022 ------##
## Warning: Removed 10 rows containing missing values (geom_point).
## Warning: Removed 10 row(s) containing missing values (geom_path).

Table 5 - MSPE-adjusted Statistic

MSPE-adjusted Statistic

This table presents the MSEP-adjusted Statistics, evaluating the statistical significance of the out-of-sample R-squared statistics of each model in the corresponding portfolio.

See Rapach et al., (2010) and Clark and West (2007) for the detailed procedure.

table5.df <- data.frame()
for (port in names(TABLE5)) {
  pt <- TABLE5[[port]]
  pt$rowname <- rownames(pt)
  pt$portname <- port
  colnames(pt)[4] <- "star"
  table5.df <- rbind.data.frame(table5.df, pt)
}

table5.output <- gt(table5.df, rowname_col = "rowname", groupname_col = "portname") %>%
  fmt_percent(columns = vars(OOS_r.squared, mspe_pvalue), decimals = 2) %>%
  fmt_number(columns = vars(mspe_t), decimals = 4) %>%
  tab_header(title = "Table 5 - MSPE-adjusted Statistic",
             subtitle = paste(str_to_title(freq_name(freq = freq)), " data starts from ", first(data_decompose$month), " and ends in ", last(data_decompose$month), ".", sep = ""))
## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead

## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead

## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead

## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead
table5.output
Table 5 - MSPE-adjusted Statistic
Monthly data starts from Jan 1967 and ends in Dec 2019.
OOS_r.squared mspe_t mspe_pvalue star
Market
DP −1.04% 0.7486 22.73%
PE −0.23% 0.6344 26.31%
EY −0.17% 0.7180 23.66%
DY −0.86% 0.9945 16.03%
Payout −0.79% −1.4743 92.94%
SOP 0.47% 1.2007 11.53%
B_Q1
DP −0.62% 0.3684 35.64%
PE −0.52% −1.4820 93.04%
EY −0.52% −1.6325 94.83%
DY −0.36% 0.8328 20.27%
Payout −0.34% 0.6058 27.25%
SOP −0.11% 0.2495 40.16%
B_Q2
DP 0.07% 1.1120 13.34%
PE −0.24% −0.7636 77.72%
EY −0.22% −0.4317 66.69%
DY 0.29% 1.4057 8.03% *
Payout −0.47% 0.3302 37.07%
SOP 0.38% 1.2336 10.90%
B_Q3
DP −1.98% 0.0266 48.94%
PE −0.11% 0.3841 35.05%
EY −0.04% 0.4934 31.10%
DY −1.89% 0.2515 40.08%
Payout −0.94% −0.7369 76.92%
SOP 0.21% 0.8221 20.58%
B_Q4
DP −1.83% 0.4720 31.86%
PE −0.91% 0.9375 17.45%
EY −0.70% 0.9590 16.91%
DY −1.65% 0.5495 29.15%
Payout −0.43% −0.8508 80.23%
SOP 0.38% 1.3886 8.29% *
B_Q5
DP 0.25% 1.2571 10.47%
PE 0.10% 0.9179 17.96%
EY 0.19% 0.9736 16.54%
DY 0.41% 1.3486 8.91% *
Payout 0.33% 0.9200 17.91%
SOP 0.36% 0.9771 16.46%
S_Q1
DP −1.27% −0.5077 69.40%
PE −0.22% −0.8273 79.57%
EY −0.09% −0.1172 54.66%
DY −1.62% 0.0034 49.86%
Payout −0.48% −1.2288 89.01%
SOP −8.31% 0.4958 31.02%
S_Q2
DP −0.78% −0.5237 69.96%
PE 0.05% 0.7840 21.68%
EY 0.11% 1.0385 14.98%
DY −0.99% 0.2318 40.84%
Payout −0.45% −0.0166 50.66%
SOP −4.22% −0.0387 51.54%
S_Q3
DP −1.56% −0.3661 64.27%
PE −0.09% 0.8804 18.96%
EY −0.20% 1.1260 13.04%
DY −2.23% 0.0416 48.34%
Payout −1.00% −1.1655 87.77%
SOP −12.06% 0.2654 39.54%
S_Q4
DP −1.14% −0.0142 50.57%
PE −0.24% 0.5122 30.44%
EY −0.36% 0.6939 24.41%
DY −1.58% 0.1964 42.22%
Payout −1.15% −1.5289 93.65%
SOP −0.59% −0.3871 65.06%
S_Q5
DP −2.53% −0.6521 74.27%
PE −0.34% 0.6768 24.94%
EY −0.42% 0.8330 20.27%
DY −2.89% −0.4702 68.08%
Payout −2.87% −1.2643 89.66%
SOP −0.81% −0.1789 57.09%